<?php

namespace App\Models\Tools;

use Illuminate\Database\Eloquent\Model;

/**
 * 项目中的表中的type，status等常量及其数组的定义，以及维护处理.
 *
 * 命名规则
 *
 * 常量 DATA_中心名称_分组_类型或状态_标识
 * eg : DATA_PERSONNEL_EMPLOYEE_TYPE_JS
 *
 * 静态数组  遵循小驼峰规则
 *
 * 中心名称_分组_类型或状态_Arr
 * eg: $personnelEmployeeTypeArr
 *
 */
class Data extends Model
{

    /**
     * 微信推送模板id
     */
    public static $wechat_blade = [
        'testing' => [
            'participate'    => 'sCaXwDrv2rqOJQHeaa8MLonu6Yrg0Bjet5R5e7GfNgI', // 报名成功通知
            'win'            => 'v_d-ej57lG7lsDPBAcJzugYKtep0e9uyFZL6TBy4KK4', // 抽奖结果通知
            'lose'           => 'v_d-ej57lG7lsDPBAcJzugYKtep0e9uyFZL6TBy4KK4', // 抽奖结果通知
            'result'         => 'OMnWw2OOTpPtHX1xY_Uhs4oEp5QaHNOh3yi1toNGRDQ', // 领取结果通知
            'open'           => 'qc8j8kt2wwt_FRfslVqJo9FE8a6i9uZFFqhyQepJw_M', // 开奖结果通知
            'consume'        => 'FUz7js27vUx93RjJsylDjuG0V6u9dA4u-GU-oy9VOOg', // 核销成功通知
            'explore_invite' => 'LsyeStb4tNRs54Y-ihrR-8fZeEI5-iSvXYGcuAE6T30', // 接单通知
            'contribute'     => 'zjAgxsmLUcKphi8-6FcvCrO4IciPJ5Zo_WVeeACjUfs', // 投稿成功通知
            'work_check'     => 'm-q2duQg4whCMNxLcZzZX-UPdDBhc9kfTCSBqvapjag', // 工单验收通知
            'order_timeout'  => 'r2el44qR3gw_UoKQhkcvDiH5O6oly78wdVoXjhTJ6gE', // 流程已超时通知
            'work_cancel'    => 'vLiNrox1cnVwSFUmtMEO9gDjN3bpLfccO9CMmPzYGW0', // 工单取消通知
            'reminder'       => '0DY5NDJGu6V8e-pDuAps7BufvVN-nJ6wQmc-4IBR2zE', // 订单服务提醒
            'certified'      => '2UXDWJ53LdjqJauknL-D1Cg8VIEPJXj_qO4kXOcLje8', // 认证通过通知
            'certify_fail'   => '2I62q1ZNg-nNf_a2PhNdORxyM4S5Y62lMtWdqvnzMKE', // 认证失败通知
            'work_reject'    => 'rfse33SnipMpDh7Z1bSw8TnHTKMychxaUMbtgx_yRN8', // 审核驳回通知
            'work_timeout'   => '-IuGeRX_9DptDZTzUrQWXR6kJWXG4fLGhPkgbruGykc', // 订单超时提醒
            'passed'         => 'VLADptQ3Jzf_IkZuMHJMFTXuNHBunmNgZUp8ygYOzns', // 审核通过通知
            'sign_up'        => '0wvKTAG_45nIcxGs67unNi_d3lIR8uoyB1LcTYoSxB0', // 活动报名成功通知
        ],
        'production' => [
            'participate'    => 'bpJAP7uA_VKZEFDtvAP2k202suRlpOJbRlQyHVqIpkI', // 报名成功通知
            'win'            => 'eIBFXESkJ7Dt1cKg2MjBNjXuS6xl6lJ9prel8O97EyM', // 抽奖结果通知
            'lose'           => 'eIBFXESkJ7Dt1cKg2MjBNjXuS6xl6lJ9prel8O97EyM', // 抽奖结果通知
            'result'         => 'yhjWjKLgwV7CvdxjdM8Oy8NuIKXazq6VzIynfuGnYt8', // 领取结果通知
            'open'           => '1B-aYgnCFo9-83SQ7Dkm5FEVOytJZyFHLsifIYxAA0g', // 开奖结果通知
            'consume'        => 'r2Yz31iftqbJzXO-qTvIQk5bZ9ufqcUMkrGcR9x_Qpw', // 核销成功通知
            'explore_invite' => 'p0Pb6qI8vLXNTcIUERMJFVEogo6Tnphmpxh4Iz_AU5c', // 接单通知
            'contribute'     => 'MtEXGmIDMU_ZEA_n80CzJ8ACadM9Lde3SZFD4T9fpeQ', // 投稿成功通知
            'work_check'     => '-34AMW5Xrjf-nVzjRWFYWTLgaqv7JuOuwFw8gkn2PH0', // 工单验收通知
            'order_timeout'  => 'YqrGzGAhSXGFzfTcp5GkEuRe8EE-NxUJZss6btnAbKI', // 流程已超时通知
            'work_cancel'    => 'jTCAy8G80OtFF2V9Quvyczw8pqrx3lYIoGZoVU8gtOM', // 工单取消通知
            'reminder'       => '-tE38iKcZdahq53XtA5ZlFdk2pagQ-ko-um77_NTKIM', // 订单服务提醒
            'certified'      => '_FbKt4aL8uAkbRGDvcWoHVCcqmhef2gi_Xkhm6Px-0k', // 认证通过通知
            'certify_fail'   => 'L-O31dexnrDYhyY0jRdD2z4dhIjPFj95NH-CSOVgbJI', // 认证失败通知
            'work_reject'    => 'pPt9hkpx84rXgt7KDAHitZOuFVWrOlV48CsVVAbd3MA', // 审核驳回通知
            'work_timeout'   => 'Htz0iGLySxrrEt8uUTfEqqHsXvJQ9mBxU4h0MZbV39s', // 订单超时提醒
            'passed'         => '12JEY6nAzYB1lI7mcYUv1gHBOILCIXDB6JENre2Ybpg', // 审核通过通知
            'sign_up'        => '0YYJAzpqhtE5QLWESuFY1TBXLdDMmc_ccqDtd_bNx7U', // 活动报名成功通知
        ],
    ];

    /**
     * 微信推送模板名
     */
    public static $wechat_blade_name = [
        'participate'    => '霸王餐-报名成功通知',
        'win'            => '霸王餐-抽奖结果通知（中奖）',
        'lose'           => '霸王餐-抽奖结果通知（未中奖）',
        'result'         => '霸王餐-领取结果通知',
        'open'           => '霸王餐-开奖结果通知',
        'consume'        => '霸王餐-核销成功通知',
        'sign_up'        => '霸王餐-活动报名成功通知',
        'explore_invite' => '探店-接单通知',
        'contribute'     => '探店-投稿成功通知',
        'work_check'     => '探店-工单验收通知',
        'order_timeout'  => '探店-流程已超时通知',
        'work_cancel'    => '探店-工单取消通知',
        'reminder'       => '探店-订单服务提醒',
        'certified'      => '探店-认证通过通知',
        'certify_fail'   => '探店-认证失败通知',
        'work_reject'    => '探店-审核驳回通知',
        'work_timeout'   => '探店-订单超时提醒',
        'passed'         => '探店-审核通过通知',
    ];

    /**
     * 微信推送模板详情
     */
    public static $wechat_blade_detail = [
        // 报名成功通知
        'participate' => [
            'first' => '首行信息',
            'keyword1' => '参与者',
            'keyword2' => '活动名称',
            'keyword3' => '时间',
            'remark' => '备注',
        ],
        // 抽奖结果通知
        'win' => [
            'first' => '首行信息',
            'keyword1' => '参与活动',
            'keyword2' => '奖项信息',
            'keyword3' => '领取方式',
            'keyword4' => '截止时间',
            'remark' => '备注',
        ],
        // 抽奖结果通知
        'lose' => [
            'first' => '首行信息',
            'keyword1' => '参与活动',
            'keyword2' => '奖项信息',
            'keyword3' => '领取方式',
            'keyword4' => '截止时间',
            'remark' => '备注',
        ],
        // 领取结果通知
        'result' => [
            'first' => '首行信息',
            'keyword1' => '领取数量',
            'keyword2' => '领取人数',
            'remark' => '备注',
        ],
        // 开奖结果通知
        'open' => [
            'first' => '首行信息',
            'keyword1' => '商品名称',
            'keyword2' => '商品金额',
            'keyword3' => '中奖人',
            'keyword4' => '开奖时间',
            'remark' => '备注',
        ],
        // 核销成功通知
        'consume' => [
            'first' => '首行信息',
            'keyword1' => '核销码',
            'keyword2' => '核销时间',
            'keyword3' => '核销门店',
            'remark' => '备注',
        ],
        // 活动报名成功通知
        'sign_up' => [
            'first' => '首行信息',
            'keyword1' => '活动名称',
            'keyword2' => '活动时间',
            'keyword3' => '活动地点',
            'remark' => '备注',
        ],
        // 接单通知
        'explore_invite' => [
            'first' => '首行信息',
            'keyword1' => '姓名',
            'keyword2' => '电话',
            'keyword3' => '时间',
            'remark' => '备注',
        ],
        // 投稿成功通知
        'contribute' => [
            'first' => '首行信息',
            'keyword1' => '投稿类别',
            'keyword2' => '投稿时间',
            'remark' => '备注',
        ],
        // 工单验收通知
        'work_check' => [
            'first' => '首行信息',
            'keyword1' => '单号',
            'keyword2' => '验收时间',
            'keyword3' => '验收结果',
            'keyword4' => '回复内容',
            'keyword5' => '验收人',
            'remark' => '备注',
        ],
        // 流程已超时通知
        'order_timeout' => [
            'first' => '首行信息',
            'keyword1' => '超时时间',
            'keyword2' => '当前状态',
            'remark' => '备注',
        ],
        // 工单取消通知
        'work_cancel' => [
            'first' => '首行信息',
            'keyword1' => '工单名称',
            'keyword2' => '取消人',
            'keyword3' => '发生时间',
            'keyword4' => '取消原因',
            'remark' => '备注',
        ],
        // 订单服务提醒
        'reminder' => [
            'first' => '首行信息',
            'keyword1' => '服务内容',
            'keyword2' => '时间',
            'remark' => '备注',
        ],
        // 认证通过通知
        'certified' => [
            'first' => '首行信息',
            'keyword1' => '用户名',
            'keyword2' => '认证通过时间',
            'remark' => '备注',
        ],
        // 认证失败通知
        'certify_fail' => [
            'first' => '首行信息',
            'keyword1' => '审核状态',
            'keyword2' => '失败原因',
            'remark' => '备注',
        ],
        // 审核驳回通知
        'work_reject'    => [
            'first' => '首行信息',
            'keyword1' => '审核信息',
            'keyword2' => '审核人',
            'keyword3' => '驳回原因',
            'keyword4' => '驳回日期',
            'remark' => '备注',
        ],
        // 订单超时提醒
        'work_timeout'   => [
            'first' => '首行信息',
            'keyword1' => '手机号码',
            'keyword2' => '订单号',
            'remark' => '备注',
        ],
        // 审核通过通知
        'passed'         => [
            'first' => '首行信息',
            'keyword1' => '审核类型',
            'keyword2' => '审核结果',
            'keyword3' => '审核时间',
            'remark' => '备注',
        ],

    ];

    /**
     * 性别
     */
    const DATA_SEX_NULL = 0;
    const DATA_SEX_MALE = 1;
    const DATA_SEX_FEMALE = 2;
    public static $dataSex = [
        self::DATA_SEX_NULL => '未知',
        self::DATA_SEX_MALE => '男',
        self::DATA_SEX_FEMALE => '女',
    ];

    /**
     * 开奖状态
     * lottery_activity.status
     */
    const DATA_DB_LOTTERY_ACTIVITY_STATUS_BEFORE = 0;
    const DATA_DB_LOTTERY_ACTIVITY_STATUS_PRE = 1;
    const DATA_DB_LOTTERY_ACTIVITY_STATUS_AFTER = 2;
    const DATA_DB_LOTTERY_ACTIVITY_STATUS_SUCCESS = 3;
    const DATA_DB_LOTTERY_ACTIVITY_STATUS_CANCEL = 4;
    public static $lotteryActivityStatus = [
        self::DATA_DB_LOTTERY_ACTIVITY_STATUS_BEFORE => '进行中',
        self::DATA_DB_LOTTERY_ACTIVITY_STATUS_PRE => '正在开奖',
        self::DATA_DB_LOTTERY_ACTIVITY_STATUS_AFTER => '已开奖',
        self::DATA_DB_LOTTERY_ACTIVITY_STATUS_SUCCESS => '已结束',
        self::DATA_DB_LOTTERY_ACTIVITY_STATUS_CANCEL => '已关闭',
    ];

    /**
     * 达人参与霸王餐状态
     * lottery_users_draw.status
     */
    const DATA_DB_LOTTERY_USERS_DRAW_STATUS_BEFORE = 0;
    const DATA_DB_LOTTERY_USERS_DRAW_STATUS_FAILED = 1;
    const DATA_DB_LOTTERY_USERS_DRAW_STATUS_WINING = 2;
    const DATA_DB_LOTTERY_USERS_DRAW_STATUS_OVERTIME = 3;
    const DATA_DB_LOTTERY_USERS_DRAW_STATUS_WIN = 4;
    public static $lotteryUsersDrawStatus = [
        self::DATA_DB_LOTTERY_USERS_DRAW_STATUS_BEFORE => '待开奖',
        self::DATA_DB_LOTTERY_USERS_DRAW_STATUS_FAILED => '未中奖',
        self::DATA_DB_LOTTERY_USERS_DRAW_STATUS_WINING => '正在开奖',
        self::DATA_DB_LOTTERY_USERS_DRAW_STATUS_OVERTIME => '开奖过期',
        self::DATA_DB_LOTTERY_USERS_DRAW_STATUS_WIN => '已中奖',
    ];


    /**
     * 霸王餐操作记录日志
     * lottery_remaining_log.action
     */
    const DATA_DB_LOTTERY_REMAINING_LOG_TYPE_RECHARGE = 1;
    const DATA_DB_LOTTERY_REMAINING_LOG_TYPE_CONSUME = 2;
    const DATA_DB_LOTTERY_REMAINING_LOG_TYPE_RETURN = 3;
    const DATA_DB_LOTTERY_REMAINING_LOG_TYPE_USE = 4;
    public static $lotteryRemainingLogType = [
        self::DATA_DB_LOTTERY_REMAINING_LOG_TYPE_RECHARGE => '充值',
        self::DATA_DB_LOTTERY_REMAINING_LOG_TYPE_CONSUME => '消费',
        self::DATA_DB_LOTTERY_REMAINING_LOG_TYPE_RETURN => '退回',
        self::DATA_DB_LOTTERY_REMAINING_LOG_TYPE_USE => '核销',
    ];

    /**
     *  来飞网订单状态
     *  laifei_orders.status
     */
    const DATA_DB_LAIFEI_ORDERS_STATUS_PREPAY = 0;
    const DATA_DB_LAIFEI_ORDERS_STATUS_SUCCESS = 1;
    const DATA_DB_LAIFEI_ORDERS_STATUS_FAIL = 2;
    const DATA_DB_LAIFEI_ORDERS_STATUS_CLOSE = -1;
    public static $laifeiOrderStatus = [
        self::DATA_DB_LAIFEI_ORDERS_STATUS_PREPAY => '待支付',
        self::DATA_DB_LAIFEI_ORDERS_STATUS_SUCCESS => '已支付',
        self::DATA_DB_LAIFEI_ORDERS_STATUS_FAIL => '支付失败',
        self::DATA_DB_LAIFEI_ORDERS_STATUS_CLOSE => '已关闭',
    ];
    // 可进行支付的订单状态类型:待支付和支付失败可以进行支付
    public static $laifeiOrderPrepay = [
        self::DATA_DB_LAIFEI_ORDERS_STATUS_PREPAY,
        self::DATA_DB_LAIFEI_ORDERS_STATUS_FAIL
    ];

    /**  枚举  */

    /**
     *  店铺类型
     *  shop.shop_type
     */
    const DATA_DB_LAIFEI_SHOP_TYPE_REPAST = 1;
    const DATA_DB_LAIFEI_SHOP_TYPE_FUN = 2;
    const DATA_DB_LAIFEI_SHOP_TYPE_BEAUTY = 3;
    const DATA_DB_LAIFEI_SHOP_TYPE_EDUCATION = 4;
    const DATA_DB_LAIFEI_SHOP_TYPE_MARRY = 5;
    const DATA_DB_LAIFEI_SHOP_TYPE_FITNESS = 6;
    const DATA_DB_LAIFEI_SHOP_TYPE_HOTEL = 7;
    const DATA_DB_LAIFEI_SHOP_TYPE_PARENT = 8;
    const DATA_DB_LAIFEI_SHOP_TYPE_HOT = 9;

    // 店铺类型
    public static $laifeiShopTypes = [
        self::DATA_DB_LAIFEI_SHOP_TYPE_REPAST => '美食',
        self::DATA_DB_LAIFEI_SHOP_TYPE_FUN => '玩乐',
        self::DATA_DB_LAIFEI_SHOP_TYPE_BEAUTY => '丽人',
        self::DATA_DB_LAIFEI_SHOP_TYPE_EDUCATION => '教培',
        self::DATA_DB_LAIFEI_SHOP_TYPE_MARRY => '结婚',
        self::DATA_DB_LAIFEI_SHOP_TYPE_FITNESS => '健身',
        self::DATA_DB_LAIFEI_SHOP_TYPE_HOTEL => '酒旅',
        self::DATA_DB_LAIFEI_SHOP_TYPE_PARENT  => '亲子',
        self::DATA_DB_LAIFEI_SHOP_TYPE_HOT  => '热门',
    ];


    /**
     * 店铺认证状态
     * shop.verified
     */
    const DATA_DB_LAIFEI_SHOP_VERIFIED_PENDING = 0;
    const DATA_DB_LAIFEI_SHOP_VERIFIED_SUCCESS = 1;
    const DATA_DB_LAIFEI_SHOP_VERIFIED_FAILED = 2;

    public static $laifeiShopVerified = [
        self::DATA_DB_LAIFEI_SHOP_VERIFIED_PENDING => '待审核',
        self::DATA_DB_LAIFEI_SHOP_VERIFIED_SUCCESS => '已认证',
        self::DATA_DB_LAIFEI_SHOP_VERIFIED_FAILED => '已拒回',
    ];

    /**
     * 探店余额操作日志
     * explore_remaining_log.action
     */
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_RECHARGE = 1;
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_CONSUME = 2;
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_DISPATCH = 3;
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_WORK_CANCEL = 4;
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_ORDER_CANCEL = 5;
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_REFUND = 6;
    const DATA_DB_EXPLORE_REMAINING_LOG_TYPE_REFUND_FAILED = 7;
    public static $exploreRemainingLogType = [
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_RECHARGE => '充值',
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_CONSUME => '消费',
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_DISPATCH => '派单结束退回',
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_WORK_CANCEL => '工单取消退回',
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_ORDER_CANCEL => '订单取消退回',
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_REFUND => '退款',
        self::DATA_DB_EXPLORE_REMAINING_LOG_TYPE_REFUND_FAILED => '退款失败返回',
    ];

    /**
     * 退款单状态
     * laifei_refund.status
     */
    const DATA_DB_LAIFEI_REFUND_STATUS_WAITING = 0;
    const DATA_DB_LAIFEI_REFUND_STATUS_PENDING = 1;
    const DATA_DB_LAIFEI_REFUND_STATUS_SUCCESS = 2;
    const DATA_DB_LAIFEI_REFUND_STATUS_FAILED = 3;
    public static $laifeiRefundStatus = [
        self::DATA_DB_LAIFEI_REFUND_STATUS_WAITING => '待退款',
        self::DATA_DB_LAIFEI_REFUND_STATUS_PENDING => '正在申请退款',
        self::DATA_DB_LAIFEI_REFUND_STATUS_SUCCESS => '退款成功',
        self::DATA_DB_LAIFEI_REFUND_STATUS_FAILED => '退款失败',
    ];

    /**
     *  订单状态
     *  explore_order.status
     */
    const DATA_DB_EXPLORE_ORDER_STATUS_PENDING = 0;
    const DATA_DB_EXPLORE_ORDER_STATUS_SUCCESS = 1;
    const DATA_DB_EXPLORE_ORDER_STATUS_PARTIAL_SUCCESS = 2;
    const DATA_DB_EXPLORE_ORDER_STATUS_FAILED = 3;
    const DATA_DB_EXPLORE_ORDER_STATUS_FINISHED = 4;

    public static $exploreOrderStatus = [
        self::DATA_DB_EXPLORE_ORDER_STATUS_PENDING         => '发单中',
        self::DATA_DB_EXPLORE_ORDER_STATUS_SUCCESS         => '抢单完成', // 全部抢单完成
        self::DATA_DB_EXPLORE_ORDER_STATUS_PARTIAL_SUCCESS => '抢单结束', // 发单超时，部分无人抢单
        self::DATA_DB_EXPLORE_ORDER_STATUS_FAILED          => '订单取消', // 发单超时，无人抢单
        self::DATA_DB_EXPLORE_ORDER_STATUS_FINISHED        => '订单结束', // 订单的全部工单完成（包括失败工单）
    ];

    /**
     * 订单操作
     *  explore_order_log.action
     */
    const DATA_DB_EXPLORE_ORDER_ACTION_APPLY = 1;
    const DATA_DB_EXPLORE_ORDER_ACTION_RECEIVE = 2;
    const DATA_DB_EXPLORE_ORDER_ACTION_SUCCESS = 3;
    const DATA_DB_EXPLORE_ORDER_ACTION_PARTIAL_SUCCESS = 4;
    const DATA_DB_EXPLORE_ORDER_ACTION_FAILED = 5;
    const DATA_DB_EXPLORE_ORDER_ACTION_FINISHED = 6;

    public static $exploreOrderAction = [
        self::DATA_DB_EXPLORE_ORDER_ACTION_APPLY           => '提交订单并开始发单',
        self::DATA_DB_EXPLORE_ORDER_ACTION_RECEIVE         => '接单',
        self::DATA_DB_EXPLORE_ORDER_ACTION_SUCCESS         => '全部接单完成',
        self::DATA_DB_EXPLORE_ORDER_ACTION_PARTIAL_SUCCESS => '订单超时部分接单',
        self::DATA_DB_EXPLORE_ORDER_ACTION_FAILED          => '订单超时无人接单',
        self::DATA_DB_EXPLORE_ORDER_ACTION_FINISHED        => '订单结束',
    ];

    /**
     * 工单状态
     * explore_work.status
     */
    const DATA_DB_EXPLORE_WORK_STATUS_INIT = 0;
    const DATA_DB_EXPLORE_WORK_STATUS_SUBMIT = 1;
    const DATA_DB_EXPLORE_WORK_STATUS_ACCEPTED = 2;
    const DATA_DB_EXPLORE_WORK_STATUS_CHECK = 3;
    const DATA_DB_EXPLORE_WORK_STATUS_SETTLEMENT = 4;
    const DATA_DB_EXPLORE_WORK_STATUS_REFUSE = 5;
    const DATA_DB_EXPLORE_WORK_STATUS_ERROR = 6;

    public static $exploreWorkStatus = [
        self::DATA_DB_EXPLORE_WORK_STATUS_INIT       => '已接单',
        self::DATA_DB_EXPLORE_WORK_STATUS_SUBMIT     => '已投稿',
        self::DATA_DB_EXPLORE_WORK_STATUS_ACCEPTED   => '已验收',
        self::DATA_DB_EXPLORE_WORK_STATUS_CHECK      => '待结算',
        self::DATA_DB_EXPLORE_WORK_STATUS_SETTLEMENT => '已结算',
        self::DATA_DB_EXPLORE_WORK_STATUS_REFUSE     => '验收不通过',// 结算验收不通过，需重新提交
        self::DATA_DB_EXPLORE_WORK_STATUS_ERROR      => '工单取消',  // 订单取消
    ];

    // 正在进行的工单流程
    public static $exploreWorking = [
        self::DATA_DB_EXPLORE_WORK_STATUS_INIT, // 已接单
        self::DATA_DB_EXPLORE_WORK_STATUS_SUBMIT, // 已投稿
        self::DATA_DB_EXPLORE_WORK_STATUS_ACCEPTED, // 已验收
        self::DATA_DB_EXPLORE_WORK_STATUS_CHECK, // 待结算
        self::DATA_DB_EXPLORE_WORK_STATUS_REFUSE, // 验收不通过

    ];

    /**
     * 失效工单取消原因
     * explore_work.error_reason
     */
    const DATA_DB_EXPLORE_WORK_ERROR_REASON_OVERTIME = 1;
    const DATA_DB_EXPLORE_WORK_ERROR_REASON_CANCEL = 2;
    const DATA_DB_EXPLORE_WORK_ERROR_REASON_GIVE_UP = 3;

    public static $exploreWorkErrorReason = [
        self::DATA_DB_EXPLORE_WORK_ERROR_REASON_OVERTIME => '投稿超时自动关闭工单',// 投稿超时，订单取消（自动）
        self::DATA_DB_EXPLORE_WORK_ERROR_REASON_CANCEL => '管理员关闭工单',// 管理员关闭工单，订单取消（手动）
        self::DATA_DB_EXPLORE_WORK_ERROR_REASON_GIVE_UP => '用户放弃任务',// 用户放弃任务，订单取消（手动）
    ];

    /**
     * 工单操作
     *  explore_work_log.action
     */
    const DATA_DB_EXPLORE_WORK_ACTION_INIT  = 0;
    const DATA_DB_EXPLORE_WORK_ACTION_SUBMIT = 1;
    const DATA_DB_EXPLORE_WORK_ACTION_ACCEPTED = 2;
    const DATA_DB_EXPLORE_WORK_ACTION_CHECK = 3;
    const DATA_DB_EXPLORE_WORK_ACTION_SETTLEMENT = 4;
    const DATA_DB_EXPLORE_WORK_ACTION_REFUSE = 5;
    const DATA_DB_EXPLORE_WORK_ACTION_OVERTIME = 6;
    const DATA_DB_EXPLORE_WORK_ACTION_CANCEL = 7;
    const DATA_DB_EXPLORE_WORK_ACTION_APPEAL = 8;
    const DATA_DB_EXPLORE_WORK_ACTION_FEEDBACK_ACCEPT = 9;
    const DATA_DB_EXPLORE_WORK_ACTION_FEEDBACK_REFUSE = 10;
    const DATA_DB_EXPLORE_WORK_ACTION_GIVE_UP = 11;

    public static $exploreWorkAction = [
        self::DATA_DB_EXPLORE_WORK_ACTION_INIT              => '接单',
        self::DATA_DB_EXPLORE_WORK_ACTION_SUBMIT            => '提交投稿',
        self::DATA_DB_EXPLORE_WORK_ACTION_ACCEPTED          => '验收',
        self::DATA_DB_EXPLORE_WORK_ACTION_CHECK             => '待结算', // 挂单七天，进入待结算状态
        self::DATA_DB_EXPLORE_WORK_ACTION_SETTLEMENT        => '结算',
        self::DATA_DB_EXPLORE_WORK_ACTION_REFUSE            => '验收拒回', // 管理员查单拒回
        self::DATA_DB_EXPLORE_WORK_ACTION_OVERTIME          => '投稿超时自动取消', // 投稿超时，订单取消（自动）
        self::DATA_DB_EXPLORE_WORK_ACTION_CANCEL            => '订单取消',     // 探店无法完成，订单取消（手动）
        self::DATA_DB_EXPLORE_WORK_ACTION_APPEAL            => '达人申诉',
        self::DATA_DB_EXPLORE_WORK_ACTION_FEEDBACK_ACCEPT   => '同意申诉',  // 管理员同意申诉
        self::DATA_DB_EXPLORE_WORK_ACTION_FEEDBACK_REFUSE   => '拒回申诉',  // 管理员拒回申诉
        self::DATA_DB_EXPLORE_WORK_ACTION_GIVE_UP           => '放弃任务',  // 达人放弃工单，订单取消（手动）
    ];

    /**
     * 达人状态
     * talent.status
     */
    const DATA_DB_TALENT_STATUS_NOT_COMPLETE = -1;
    const DATA_DB_TALENT_STATUS_BEFORE = 0;
    const DATA_DB_TALENT_STATUS_SUCCESS = 1;
    const DATA_DB_TALENT_STATUS_REFUSE = 2;
    const DATA_DB_TALENT_STATUS_FREEZE = 3;
    public static $talentStatus = [
        self::DATA_DB_TALENT_STATUS_NOT_COMPLETE => '资料待完善',
        self::DATA_DB_TALENT_STATUS_BEFORE => '待认证',
        self::DATA_DB_TALENT_STATUS_SUCCESS => '认证通过',
        self::DATA_DB_TALENT_STATUS_REFUSE => '认证不通过',
        self::DATA_DB_TALENT_STATUS_FREEZE => '已冻结',
    ];

    /**
     * 达人操作日志
     * talent_log.active_type
     */
    const DATA_DB_TALENT_ACTION_SUBMIT   = 1;
    const DATA_DB_TALENT_ACTION_PASS     = 2;
    const DATA_DB_TALENT_ACTION_REFUSE   = 3;
    const DATA_DB_TALENT_ACTION_RESUBMIT = 4;
    const DATA_DB_TALENT_ACTION_FREEZE   = 5;

    public static $talentAction = [
        self::DATA_DB_TALENT_ACTION_SUBMIT   => '申请',
        self::DATA_DB_TALENT_ACTION_PASS     => '审批通过',
        self::DATA_DB_TALENT_ACTION_REFUSE   => '拒回',
        self::DATA_DB_TALENT_ACTION_RESUBMIT => '修改',
        self::DATA_DB_TALENT_ACTION_FREEZE   => '冻结',
    ];

    /**
     * 已开通探店的城市
     * @var int[]
     */
    public static $lotteryPermitCity = [
        110100, // 北京市
        310100, // 上海市
        440100, // 广州市
        440300, // 深圳市
        510100, // 成都市
        120100, // 天津市
    ];

    /**
     * 审核信息接收人openid
     * @var \string[][]
     */
    public static $manager_openid = [
        'testing' => [
            'o9cRLwBJOdcU_rkBz5qIRY4Mtq4k', // 小黑
            'o9cRLwDCY8zJI9xKZto95OeTFEvs', // 狼行天下
        ],
        'production' => [
            'oF-rCjlWSc6HpVJ8o4ud_gVkWcA4', // 小黑
            'oF-rCjpuQxaFUtbpyIFwvdMhjE24', // 狼行天下
            'oF-rCjjn0k_rJtgs7qxvyd6NfKc4', // 赵飞霞
        ],

    ];


    /**
     * 素材id
     * @var \string[][]
     */
    public static $media_id = [
        'testing' => [
            'shop' => 'MLcIJmcmeHphqE6YytG7efAgGuP7_-zCQEQTEFS7bhg',
            'talent' => 'MLcIJmcmeHphqE6YytG7eZkUCgciQnFtMvUqAmRa9O4',
        ],
        'production' => [
            'shop' => 'bxDn7mT3HZwqZIsOwyoolTOlp9oV2KA_mAQfa3tjcNs', // 店主功能介绍
            'talent' => 'bxDn7mT3HZwqZIsOwyoold_Ams8pXAJaMjxh-W5kXnA', // 达人功能介绍
        ],
    ];


}
